#ifndef MTABLEWIDGET_H
#define MTABLEWIDGET_H

#include <QTableWidget>
#include <QListWidget>
#include <QDebug>
#include <QDrag>
#include <QtGui>
#include <QMimeData>
#include <QUrl>

class MTableWidget : public QTableWidget
{
    Q_OBJECT
public:
    MTableWidget(	QWidget * parent = 0 );

    void performDrag();

protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);	
    void dragEnterEvent(QDragEnterEvent *event);
    void dragMoveEvent(QDragMoveEvent *event);
    void dropEvent(QDropEvent *event);

public:
    QPoint startPos;
    QPoint endPos;
    QString name;
};

#endif // MTABLEWIDGET_H
